<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/2/26
<<<<<<< HEAD
 * Time: 18:28
 */

namespace app\index\validate;
use think\Validate;

class Gift extends Validate
{
    protected $rule = [
        'name'  =>  'require',
        'money' =>  'require',
        'integral' =>  'require|number',
        'status' =>  'require',
        'icon'=>'require',
    ];
    protected $message = [
        'name'  =>  '名称必须填写',
        'status'  =>  '状态必须填写',
        'icon'  =>  '图片必须填写',
        'money' =>  '钱必须',
        'integral' =>  '经验必须填写且为整数',
    ];
}